package cn.wzby;

public class Reg5 {
    public static void main(String[] args) {
        String s = "j4j2j2-a1a1a3=v1v0v8-aaa";
        System.out.println(s.replaceAll("\\d+","-"));
        //贪婪
        System.out.println(s.replaceAll("\\d","-"));
        System.out.println(s.replaceAll("\\d{2,}?","-"));
        //禁用贪婪
    }
}
